# $Id: PKGBUILD 180261 2013-03-19 00:26:52Z heftig $
# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
# Contributor: György Balló <ballogy@freestart.hu>

pkgname=geoclue
pkgver=0.12.99
pkgrel=1
pkgdesc="Modular geoinformation service built on the D-Bus messaging system."
arch=(i686 x86_64)
url="http://geoclue.freedesktop.org/"
license=(LGPL)
depends=(dbus-glib libxml2 dconf)
makedepends=(networkmanager libsoup-gnome gtk-doc)
optdepends=('networkmanager: geolocation'
            'libsoup-gnome: Skyhook location provider')
options=('!libtool')
install=geoclue.install
source=(http://freedesktop.org/~hadess/$pkgname-$pkgver.tar.gz)
md5sums=('779245045bfeeec4853da8baaa3a18e6')

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
    --libexecdir=/usr/lib/$pkgname --disable-static
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
